<template>
  <header>
    {{ title }}
    <slot></slot>
  </header>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "猫眼电影",
    },
  },
};
</script>

<style lang="less" scoped>
// scoped是用来做作用域
@import "../../../../assets/css/var.less";
header {
  width: 100%;
  height: 50px;
  background: @theme-color;
  .center();
  color: #fff;
  font-size: @l-font;
  position: relative;

  .iconfont {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    font-size: 22px;
  }
}
</style>
